/**
 * File: AbstractBatchProcessor.java
 * Created by: mhaimel
 * Created on: 27 Jul 2009
 * CVS:  $Id: AbstractBatchProcessor.java,v 1.1 2009/08/05 15:16:13 mhaimel Exp $
 */
package uk.ac.ebi.curtain.processor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * @author mhaimel
 *
 */
public abstract class AbstractBatchProcessor<I extends Serializable,O extends Serializable> extends AbstractProcessor<I,Serializable> {
	private List<I> inList = new LinkedList<I>();
	private List<O> outList = new ArrayList<O>();
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	protected Serializable buildReturnObject() {
		return (Serializable) getOutList();
	}
	
	public List<I> getInList() {
		return inList;
	}
	protected void setInList(List<I> inList) {
		this.inList = inList;
	}
	public List<O> getOutList() {
		return outList;
	}
	protected void setOutList(List<O> outList) {
		this.outList = outList;
	}
	
	
}
